package com.mars.basic.convert;


import com.mars.basic.allmain.entity.AdminRoleEntity;
import com.mars.basic.allmain.po.AdminRole;
import com.mars.common.convert.IEntityPOConvert;
import com.mars.common.utils.Beans;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

@Component
@Lazy
public class AdminRoleConvert implements IEntityPOConvert<AdminRoleEntity,AdminRole> {
    @Override
    public AdminRoleEntity toEntity(AdminRole u) {
        return Beans.mapper(u, AdminRoleEntity.class); }

    @Override
    public AdminRole toPo(AdminRoleEntity e) {
        return Beans.mapper(e,AdminRole.class);
    }
}
